package com.boat.ai.util;


public class IdUtil {

    private static final SnowflakeGenerator SNOWFLAKE_GENERATOR = new SnowflakeGenerator(1, 1);

    private IdUtil() {
    }

    public static long getId() {
        return SNOWFLAKE_GENERATOR.nextId();
    }

    public static String getIdStr() {
        return String.valueOf(SNOWFLAKE_GENERATOR.nextId());
    }


}
